The pistol thing is easy enough; just change the variable WEAPON1_SHOOTS to the tile number of the thing you want it to shoot.